﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    public class KaoGuanDetailModel
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        private int _KaoGuanID;
        [DataMember]
        public int KaoGuanID
        {
            get { return _KaoGuanID; }
            set { _KaoGuanID = value; }
        }

        private int _Year;
        [DataMember]
        public int Year
        {
            get { return _Year; }
            set { _Year = value; }
        }
        private string _XBType;
        [DataMember]
        public string XBType
        {
            get { return _XBType; }
            set { _XBType = value; }
        }
        private string _KGType;
        [DataMember]
        public string KGType
        {
            get { return _KGType; }
            set { _KGType = value; }
        }

        /// <summary>
        /// 用于日程安排时
        /// </summary>
        private bool isselected1 = false;
        [DataMember]
        public bool IsSelected1
        {
            get { return isselected1; }
            set { isselected1 = value; }
        }

       
        public static KaoGuanDetailModel FillEntity(DataRow dr)
        {
            KaoGuanDetailModel right = new KaoGuanDetailModel();
            right.ID = (int)dr["ID"];
            right.KaoGuanID = (int)dr["KaoGuanID"];
            right.Year = (int)dr["Year"];
            right.XBType = dr["XBType"] as string;
            right.KGType = dr["KGType"] as string;

            return right;
        }
    }
}
